import request from '@/utils/request'

// 点击获取图形验证码
export const GetPicCode = () => {
    return request.get('/captcha/image')
}

// 获取短信验证码
export const GetMsgCode = (captchaCode, captchaKey, mobile) => {
    return request.post('/captcha/sendSmsCaptcha', {
        form: {
            captchaCode, // 图形验证码
            captchaKey, // 图形验证key
            mobile     //用户输入的手机号
        }
    })
}

// 登录按钮
export const GetLogin = (mobile, smsCode ) => {
    return request.post('/passport/login', {
        form: {
            isParty: false,
            partyData: {},
            mobile,
            smsCode
        }
    })
}